package cn.tedu._05mvcboot02.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
/*
    Configuration:配置类,工程启动时自动加载此类;
    MapperScan:
        1.自动扫描注解
        2.一旦添加此注解,指定包扫描的路径,则MyBatis会自动扫描该包及子孙包中所有的接口,并为其添加@Mapper注解;
 */
@Configuration
@MapperScan("cn.tedu._05mvcboot02.mapper")
public class MybatisConfig {
}
